<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        #canvas{
            margin: 10% 50%;
            background-color: #333;
            transform: translate(-50%);
        }
    </style>
</head>
<body>
<canvas id="canvas" width="960px" height="720px"></canvas>
<script src="snake.js"></script>
<script src="bg.js"></script>
<script src="point.js"></script>
<script src="yoursnake.js"></script>
</body>
</html>